package com.iyao_app.base;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.iyao_app.R;


/**
 * Created by 胡家兵 on 2017/11/10.
 */

public class BaseActivityWithHead extends BaseActivity {


    public void setTitleTV(String str) {
        TextView tv_title = findViewById(R.id.tv_title);
        tv_title.setText(str);
    }

    public void back(View view) {
        finish();
    }

    public void setNextImage(int resId) {
        ImageView iv_next = findViewById(R.id.iv_next);
        iv_next.setImageResource(resId);
    }

    public void onNextClick(View.OnClickListener onClickListener) {
        ImageView iv_next = findViewById(R.id.iv_next);
        iv_next.setOnClickListener(onClickListener);
    }

}
